﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net.Http.Json;
using System.Text;
using System.Text.Json.Nodes;
using System.Threading.Tasks;

namespace Apollo.AST
{
    /// <summary>
    /// 程序段处理类
    /// </summary>
    internal class Program : Statement
    {
        public List<Statement> m_statements;

        public Program() : base(NodeTypeEnum.PROGRAM)
        {
            m_statements = new();
        }

        public override string ToString()
        {
            string s =  $"Program:";
            foreach(var item in m_statements)
            {
                s += $" {item} ";
            }
            return s;
        }
    }
}
